import request from '@/utils/request'

// 查询监测指标列表
export function listDispatchMonitoringIndicators(query) {
  return request({
    url: '/system/dispatchMonitoringIndicators/list',
    method: 'get',
    params: query
  })
}

// 查询监测指标详细
export function getDispatchMonitoringIndicators(monitoringIndicatorsId) {
  return request({
    url: '/system/dispatchMonitoringIndicators/' + monitoringIndicatorsId,
    method: 'get'
  })
}

// 新增监测指标
export function addDispatchMonitoringIndicators(data) {
  return request({
    url: '/system/dispatchMonitoringIndicators',
    method: 'post',
    data: data
  })
}

// 修改监测指标
export function updateDispatchMonitoringIndicators(data) {
  return request({
    url: '/system/dispatchMonitoringIndicators',
    method: 'put',
    data: data
  })
}

// 删除监测指标
export function delDispatchMonitoringIndicators(monitoringIndicatorsId) {
  return request({
    url: '/system/dispatchMonitoringIndicators/' + monitoringIndicatorsId,
    method: 'delete'
  })
}
